package com.letu.annotation.annotation.tenant;

import com.letu.annotation.base.BaseEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.stream.Stream;

@Getter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "TenantEnum", description = "非租户模式查询范围")
public enum TenantEnum implements BaseEnum {
    /**
     * PROJECT="项目范围"
     */
    PROJECT("项目"),

    /**
     * SUB_SYSTEM="子系统范围"
     */
    SUB_SYSTEM("子系统"),
    /**
     * TEAM="团队"
     */
    TEAM("团队")
    ;

    @ApiModelProperty(value = "描述")
    private String desc;


    @Override
    @ApiModelProperty(value = "编码", allowableValues = "NORMAL,WAIT_INIT,FORBIDDEN,WAITING,REFUSE,DELETE", example = "NORMAL")
    public String getCode() {
        return this.name();
    }
}
